import { createApp } from 'vue';
import App from './App.vue';
import Vant from 'vant';
import 'vant/lib/index.css';
import 'amfe-flexible'; // 引入flexible.js进行移动端适配


import store from '@/store';
import router from '@/router';
import moment from 'moment';

const app = createApp(App);
app.config.globalProperties.$momentFun = (
  result,
  str = 'YYYY-MM-DD HH:mm:ss'
) => {
  return moment(result).format(str);
};
app.use(Vant);
app.use(store);
app.use(router);
app.mount('#app');
